package com.acmedcare.framework.exchange.center.core;

import com.acmedcare.framework.exchange.center.core.exception.PluginNotFoundException;
import com.acmedcare.framework.exchange.center.entity.bean.Plugin;
import java.util.List;

public interface PluginContainerMBean {

  void init(List<Plugin> plugins);

  void unloadAsync(Plugin plugin);

  void load(Plugin plugin);

  PluginMetadata getPlugin(String pluginName)
      throws PluginNotFoundException;

  List<PluginMetadata> getPlugins();

  default void restart(String pluginName) {
  }

  void setEnv(String key,String value);
}
